package Dto;

import entity.KnowledgeBase;
import entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Su
 * @Date 2025/4/30 10:13
 * @Version 1.0 （版本号）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleDTO {
    private int id;
    private String title;
    private String content;
    private Date createdAt;
    private UserDto author;
    private KnowledgeBase knowledgeBase;
    private int likeCount;
    private int commentCount;
    private boolean liked;

    // getters and setters
}